@extends('welcome')
@section('zhong_content')
@if(session('data'))

<div style="background:rgb(243, 243, 243);width:1000px;height:100px;font-size:20px;">
  <div style="">在全部商品中搜索<i style="color:red">“ {{$title}}”</i>找到{{$num}}件相关商品</div><br>
  <form action="{{url('/foreach/price')}}" method="post">
  价格:<input name="min" value="@if($min){{$min}}@endif" style="width:50px" type="text"> - <input value="@if($max){{$max}}@endif" name="max" style="width:50px" type="text"><button>搜索</button>
  <input type="hidden" name="GoodsName" value="{{$title}}">
  {{csrf_field()}}
  </form>  
</div>
<!-- ========商品======== -->
    <div class="u-module pd10" style="background-color:#FFFFFF;">
    <div class="u-module-con">
        <div class="module-tittle"><img src="/home/list/Picture/2016092357e48c26dc636.png" title="1" width="968"></div>
        <div class="module-con">
            <div class="module-goods">
                <ul class="module-goods-list">
                   @foreach($goodsAll as $k=>$v)
                    
                    <li class="item mgbottom size3 bgfff bh goods_list"  style="background-color:rgb(243, 243, 243);">
                        <div class="listone mg15">
                            <div class="listimg">
                                <a href="{{url('/home/list/details',['id'=>$v->id])}}" target="_blank" onclick="addTrackPositionToCookie(this,null,null,'36619','Browse',null);">
                                <img src="/uploads/{{$v->pic}}">
                                </a>
                            </div>
                        </div>
                        <div class="listinfor borderf3">
                            <div class="infor mg3 width286">
                                <div class="infor-tit width286 f16"><a href="{{url('/home/list/details',['id'=>$v->id])}}">{{$v->goods_name}}</a></div>
                                <div class="pricebuy">
                                    <div class="l infor-price">
                              <!--          <div class="mark-price f12">
                                             ￥<em class="f-family f12">139</em>
                                            </div>-->
                                        <div class="ugo-price f14">
                                            <a href="{{url('/home/list/details',['id'=>$v->id])}}">优品惠价:￥<em class="f-family f20">{{$v->price}}</em></a>
                                        </div>
                                    </div>
                                    <div class="r gotobuy">
                                        评论<a href="" target="_blank" style="color:blue;">
                                            8
                                        </a>条
                                    </div>
                                </div>
                                <div style="margin-top: 45px;">
                                    <div class="col-lg-6">
                                        <span class="l" style="border:1px solid red;width:50px;height:18px;color:#FFFFFF;background-color:#FA0E56;margin-right:5px;">TV商品</span>
                                        <span class="l" style="width:50px;height:18px;background-color:#00BFCF;color:#FFFFFF;">免运费</span>
                                    </div>
                                    <div class="col-lg-3">
                                           <span class="score-num r" style="margin-right: 5px"> 998</span>
                                           <span class="score-icon r" style="width:16px;height:16px;background-color:#0068E9;color:#FFFFFF;margin-right: 9px;">积</span>
                                    </div>
                                </div>
                            </div>
                        </div>
                    </li>
                   @endforeach
                </ul>
            </div>
        </div>
    </div>
</div>

@else
<!-- ========没有搜索到的界面========= -->

  <link href="/Home/Index/Css/commonc.css" rel="stylesheet" />
  <link rel="stylesheet" type="text/css" href="/Home/Index/Css/classifyc.css" />
  <link type="text/css" rel="stylesheet" href="/Home/Index/Css/publicc.css" />  
<div class="sear_conm">
                <div class="box">
                    <div class="ico"></div>
                    <div class="title">抱歉，没有找到
                        <span>
                            <strong>"{{$title}}"</strong>
                        </span>相关的产品</div>
                    <div class="cl"></div>
                    <div class="remind">
                        <div class="left">建议您：</div>
                        <div class="right">
                            <ul>
                                <li>1. 看看输入的文字是否有误</li>
                                <li>2. 调整关键字，如"食品"改成"衣服"</li>
                                <li>3. 重新搜索
                                    <div class="from">
                                    <form action="{{url('/foreach/list')}}" method="get">
                                        <input id="_keyword" type="text" class="text" name="GoodsName">
                                        <button style="height:25px;width:50px">搜索</button>
                                    </div>
                                    </form>
                                </li>
                            </ul>
                        </div>
                        <div class="cl"></div>

                    </div>
                    <!--remind-->
                </div>
            </div>
@endif
@endsection